load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

package(default_visibility = ["//:__subpackages__"])  # keep

go_library(
    name = "subtle",
    srcs = [
        "aes_cmac.go",
        "hkdf.go",
        "hmac.go",
        "subtle.go",
    ],
    importpath = "github.com/google/tink/go/prf/subtle",
    visibility = ["//visibility:public"],
    deps = [
        "//subtle",
        "@org_golang_x_crypto//hkdf",
    ],
)

go_test(
    name = "subtle_test",
    srcs = [
        "aes_cmac_test.go",
        "hkdf_test.go",
        "hmac_test.go",
        "subtle_test.go",
    ],
    data = ["@wycheproof//testvectors:all"],
    deps = [
        ":subtle",
        "//testutil",
    ],
)

alias(
    name = "go_default_library",
    actual = ":subtle",
    visibility = ["//:__subpackages__"],
)
